import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/user/list',
    method: 'post',
    params
  })
}

export function StopUser(user_id,operate_id) {
  return request({
    url: 'admin/forbidden',
    method: 'post',
    params: { user_id,operate_id }
  })
}

export function StartUser(user_id,operate_id) {
  return request({
    url: 'admin/start',
    method: 'post',
    params: { user_id,operate_id }
  })
}

export function createUser(data) {
  return request({
    url: 'admin/regist',
    method: 'post',
    data
  })
}

// 获取操作日志
export function getLogList(params) {
  return request({
    url: 'admin/user/log',
    method: 'post',
    params
  })
}

// 获取反馈日志
export function getFeedList(params) {
  return request({
    url: 'feedback/list',
    method: 'post',
    params
  })
}
